#ifndef __CONFIG_H__
#define __CONFIG_H__

#include <Arduino.h>
#include <SPI.h>
#include <U8g2lib.h>


// https://github.com/olikraus/u8g2/wiki/u8g2reference
#define KEY_U	18
#define KEY_D	21
#define KEY_L	20
#define KEY_R	19
#define KEY_A	7
#define KEY_B	8

#define KEY_U0	(digitalRead(KEY_U)==LOW)
#define KEY_D0	(digitalRead(KEY_D)==LOW)
#define KEY_L0	(digitalRead(KEY_L)==LOW)
#define KEY_R0	(digitalRead(KEY_R)==LOW)
#define KEY_A0	(digitalRead(KEY_A)==LOW)
#define KEY_B0	(digitalRead(KEY_B)==LOW)

#define KEY_U1	(digitalRead(KEY_U)==HIGH)
#define KEY_D1	(digitalRead(KEY_D)==HIGH)
#define KEY_L1	(digitalRead(KEY_L)==HIGH)
#define KEY_R1	(digitalRead(KEY_R)==HIGH)
#define KEY_A1	(digitalRead(KEY_A)==HIGH)
#define KEY_B1	(digitalRead(KEY_B)==HIGH)

#endif